>Is it possible to create regions? This is very useful for selecting
>polyline objects and for filling such regions with a color or fill pattern.
>It seems as you only support ovals, rects and lines.
Check out the Graphics class. We recently added support for polygons.
>Do you support the toolbox drawing modes? My example uses different drawing
>colors for generating the rubber band objects while drawing, but I think it
>would be better if you could do it in the Toolbox way (cleaner anyway).
Unfortunately we don't. Please submit a feature request to bugs@realsoftware.com.
>Is there a way to set the default location of a window on the screen. In
>the drawing project it's a bit annoying that the tool palette covers the
>drawing surface.
Where ever you position the window in the Design environment will be it's default position in the Runtime environment. Also, in the Open event handler of the window you could change the Left and Top properties of the Window to move it.
Suggestions for your drawing program (which looks good by the way):
1. Support multiple windows
2. Allow the user to save to pict and open pict and bitmap files.
3. Add printing support.
4. Add the ability for the user to choose a foreground and background color
5. Add support for text
6. Add support for solid objects (filled in ovals and rectangles)
7. Add support for different line widths
8. Put the X and Y coordinates in the Toolbar
9. Remove the Quit button (since you have a Quit menu item)
10. Add an About Box with the name of the program, your name and email address.
11. Add support for setting the drawing size (Canvas objects have a scroll property now so you can put in a vertical scrollbar).
12. You are currently drawing into the window itself but it would work better with a canvas. You should also store a copy of the drawing in a property of the window. That way you can let the user drag to draw as you do now and once they have, you can draw the oval,line, rectangle, into the copy and then redraw the copy into the Canvas control. This will prevent objects in the drawing from getting erased as the user drags over them.
13. Consider whether this will be for creating bitmaps or vector-based graphics. For vector-based, you would need to keep an array of the objects the user is drawing so you could let the user select one by clicking on it and for printing.
I would really like to include your example on the CD. What do you think about my suggestions?